package org.jeecg.modules.icms.customs.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 202304929
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="icms_customs_detail_dto对象", description="分类明细")
public class IcmsCustomsDetailDto {

    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**父级节点*/
    @Excel(name = "父级节点", width = 15)
    @ApiModelProperty(value = "父级节点")
    private String pid;
    /**是否有子节点*/
    @Excel(name = "是否有子节点", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否有子节点")
    private String hasChild;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**报关头id*/
    @Excel(name = "报关头id", width = 15)
    @ApiModelProperty(value = "报关头id")
    private String customsHeaderId;
    /**合同号*/
    @Excel(name = "合同号", width = 15)
    @ApiModelProperty(value = "合同号")
    private String contractNo;
    /**出口国家*/
    @Excel(name = "出口国家", width = 15)
    @ApiModelProperty(value = "出口国家")
    private String exportCountry;
    /**零件编码*/
    @Excel(name = "件号", width = 15)
    @ApiModelProperty(value = "件号")
    private String partNo;
    /**零件名称*/
    @Excel(name = "零件名称", width = 15)
    @ApiModelProperty(value = "零件名称")
    private String partName;
    /**数量*/
    @Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private Double qty;
    /**总重量(KG)*/
    @Excel(name = "总重(KG)", width = 15)
    @ApiModelProperty(value = "总重(KG)")
    private Double totalWeight;
    /**V*/
    @Excel(name = "V", width = 15)
    @ApiModelProperty(value = "V")
    private Double volume;
    /**HS编码*/
    @Excel(name = "HS编码", width = 15)
    @ApiModelProperty(value = "HS编码")
    private String hsCode;
    /**HS描述*/
    @Excel(name = "HS CODE描述", width = 15)
    @ApiModelProperty(value = "HS CODE描述")
    private String hsDodeDesc;
    /**总金额(元)*/
    @Excel(name = "总价(元)", width = 15)
    @ApiModelProperty(value = "总价(元)")
    private Double totalPrice;
    /**税率*/
    @Excel(name = "税率", width = 15)
    @ApiModelProperty(value = "税率")
    private String taxRate;
    /**法定单位*/
    @Excel(name = "法定单位", width = 15)
    @ApiModelProperty(value = "法定单位")
    private String legalUnit;
}
